package com.jhws.common.base.bo;

public final class Global {
    public static int COMM_LENGTH = 12;
    public static String DEFAULT_USER_PWD = "123456";

    /* 设备绑定关系类型 */
    public static String BINDING_TYPE_INDOOR = "indoor";
    public static String BINDING_TYPE_UNLOCK_MONITOR = "m_unlock";
    public static String BINDING_TYPE_VILLA = "villa";
    public static String BINDING_TYPE_MANAGER = "manager";

    /* SIP 账号类型 */
    public static final String SIP_ACCOUNT_TYPE_MOBILE = "mobile";
    public static final String SIP_ACCOUNT_TYPE_LOCAL_SERVER = "local_srv";

    /* EHCache */
    public static final String EHCACHE_VISITOR_AUTH = "visitor-AuthCach";

    /* 用户登录认证失败次数 */
    public static final Integer LOGIN_PASSWORD_FAIL_COUNT = 5;

    /* 全局或通用模块的Redis-key */
    public static final String REDIS_LOGIN_LOCK_PREFIX = "logincheck:";

    /* 获取菜单接口的参数类型 */
    public static int TYPE_ALL_MENUS = 0;
    public static int TYPE_ROLE_MENUS = 1;
    public static int TYPE_ALL_MENUS_WITH_ROLE_CHECK = 2;

    /* 角色名称 */
    /* 超级管理员 */
    public static String ROLE_SUPPER_ADMIN = "admin";
    /* 超级管理员CMS权限 */
    public static String ROLE_SUPPER_ADMIN_CMS = "admin_cms";
    /* 普通物业管理员 */
    public static String ROLE_PROPERTY_ADMIN = "property";
    /* 二级运营商管理员 */
    public static String ROLE_SEC_LEVEL_ADMIN = "secLevel";

    /*cms资源审核状态*/
    public static final String CMS_APPROVED = "Y"; //通过审核
    public static final String CMS_NOT_APPROVED = "N"; //未通过审核
    public static final String CMS_IS_APPROVED = "R"; //正在审核

    /*custom token 头*/
    public static final String WEB_API_TOKEN = "W";

    /* 当前服务器代码的三种配置 */
    public static final String SERVER_TYPE_PLATFROM = "platform";
    public static final String SERVER_TYPE_TEST = "test";
    public static final String SERVER_TYPE_TIANZHU = "tianzhu";

    public static final String CMS_CUSTOM_TEXT = "CMS_CUSTOM_TEXT"; //自定义文本类型
    public static final String CMS_CUSTOM_SORT = "CMS_CUSTOM_SORT"; //自定义选择类型

    public static final String DEFAULT_COMM = "0000"; //默认小区

    public static final String VISITOR_CALL = "VISITOR_CALL"; //呼叫类型访客图片
    public static final String VISITOR_CARD = "VISITOR_CARD"; //刷卡类型访客图片

    /* 小区版本号, 初始为0
     * 为了应对一些无法兼容的功能升级, 在梯口机版本比较老的小区,app通过这个版本号来使用老接口
     * >=1 : APP端使用新的开锁模式
     * */
    public static final int COMM_SOFT_VERSION = 1;


    //oss imags 是否受控, 受控后就是与资源绑定了
    public static int OSS_IMAGES_NOT_CONTROLLED = 0;//没有受控
    public static int OSS_IMAGES_CONTROLLED = 1;//没有受控

    /* 楼栋类型 */
    public static final int BUILDING_NORMAL = 0; //普通单元楼
    public static final int BUILDING_VILLA = 1; //别墅楼

    /* 小区功能权限标记 */
    public static final int PERMISSION_ENABLE = 1;
    public static final int PERMISSION_DISABLE = 0;


    /*rom 定义*/
    public static final String ROM_MIUI = "MIUI";
    public static final String ROM_EMUI = "EMUI";
    public static final String ROM_FLYME = "FLYME";
    public static final String ROM_OPPO = "OPPO";
    public static final String ROM_SMARTISAN = "SMARTISAN";
    public static final String ROM_VIVO = "VIVO";
    public static final String ROM_QIKU = "QIKU";
}
